package pl.edu.agh.iosr.gamblingzone.mainpanel.action;

import org.jboss.seam.annotations.Logger;
import org.jboss.seam.log.Log;
import org.richfaces.component.UITree;
import org.richfaces.event.NodeSelectedEvent;
import org.richfaces.model.TreeNodeImpl;
import java.util.List;
import java.util.ArrayList;

public class GroupsTreeNodeImpl extends TreeNodeImpl {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String type = "";
	private List<EventRowAction> events = new ArrayList<EventRowAction>();
	
	@Logger
	Log log;
	
	public List<EventRowAction> getEvents() {
		return this.events;
	}
	
	public void setEvents(List<EventRowAction> events) {
		this.events = events;
	}
	
	public void addEvent(EventRowAction event) {
		events.add(event);
	}
	
	public void setType(String type) {
		this.type = type;
	}
	
	public String getType() {
		return type;
	}
}
